package exception;

import Enum.ProductEnum;

public class ProductException extends RuntimeException {
	private Integer code;

	public ProductException(Integer code,String message) {
		super(message);
		this.code = code;
	}

	public ProductException(ProductEnum enums) {
		super(enums.getMessage());
		this.code = enums.getCode();
	}
	
	

}
